﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace Ryder_US_Webservice
{
    /// <summary>
    /// Summary description for BankingService
    /// </summary>
    [WebService(Namespace = "http://RyderUS.com/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class BankingService : System.Web.Services.WebService
    {
        public struct bankingInfo
        {
            public String Name;
            public String Account;
            public Double Money;
        }

        [WebMethod]
        public bankingInfo GetAccountInfo(String account, String PIN)
        {
            bankingInfo info = new bankingInfo();
            info.Name = "Tên chủ tài khoản";
            info.Account = account;
            info.Money = 5000;
            return info;
        }
    }
}
